#include "Facility_Define.h"

FacilityDefine::FacilityDefine(FacilityType f_type,
                               double process_speed,
                               int width,
                               int height,
                               int enters_num,
                               int exists_num,
                               int group_idx)
    :   facility_type(f_type),
        process_speed(process_speed),
        width(width),
        height(height),
        enters_num(enters_num),
        exits_num(exists_num),
        group_idx(group_idx)
{
    interval = speedToInterval(process_speed);
    hash_id = fromTypeAndIdxToString(f_type,group_idx);
}


